#include "changWeiFenSolver.h"
#include <iostream>

int main()
{
	std::function<double(double, double)> f = [](double t, double y)->double
		{
			return (1 - (2.0 * t * y / (1 + t * t)));
		};
	std::vector<CoordPoint> vecResult;
	std::string errorMsg = "";

	bool bRet = changWeiFenSolver::SolveAndGetY_RungeKutta_4Order(0, 0, 2, 0.1, f, vecResult, errorMsg);
	if (!bRet)
	{
		std::cout << errorMsg << std::endl;
	}
	return 0;
}